package org.springframework.security.oauth.samples.web;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Description:
 * Author: YangShiWei
 * Email: strongwalter2014@gmail.com
 * Datetime: 2023/9/3 21:35
 */
@RestController
@RequestMapping("crcc-menhu/v1.0")
public class MenhuController {

    @GetMapping("accessible")
    public Map<String, Object> accessible() {
        Map<String, Object> result = Maps.newHashMap();
        result.put("status", "C00001");
        result.put("msg", "操作成功，用户无权限访问访问该应用");
        result.put("data", new AccessibleDto(false));
        return result;
    }

}
